package com.pickgliss.effect
{
	import com.greensock.TweenMax;
	import com.greensock.easing.Circ;
	import com.greensock.easing.Sine;
	import com.pickgliss.toplevel.StageReferance;
	import com.pickgliss.utils.EffectUtils;
	import com.pickgliss.utils.ObjectUtils;
	
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.display.GradientType;
	import flash.display.InterpolationMethod;
	import flash.display.Shape;
	import flash.display.SpreadMethod;
	import flash.display.Sprite;
	import flash.filters.GradientGlowFilter;
	import flash.geom.ColorTransform;
	import flash.geom.Matrix;
	
	/**
	 * 变颜色的 透明渐变效果 
	 * @author Joen
	 * 
	 */
	public class LinearShinerAnimation extends AlphaShinerAnimation
	{		
		public function LinearShinerAnimation($id:int)
		{
			super($id);
		}
		
		override public function play():void
		{
			if(TweenMax.isTweening(_maskShape))return;
			
			DisplayObjectContainer(target).addChildAt(_shineAnimationContainer,0);
			if(_isLoop){
				TweenMax.to(_maskShape,_shineMoveSpeed,{startAt:{alpha:0}, alpha:1,yoyo:true,repeat:-1,ease:Sine.easeOut});
			}
			else
			{
				TweenMax.to(_maskShape,_shineMoveSpeed,{startAt:{alpha:0},alpha:1,ease:Sine.easeOut});
			}
		}
	}
}